package com.xdf.xzymanagementsystem.base;

import com.xdf.xzymanagementsystem.service.base.BaseService;
import org.apache.shiro.SecurityUtils;

/**
 * @program: xzy-management-system
 * @description:
 * @author: 张柯
 * @create: 2021-01-07 10:51
 **/
public class BaseController extends BaseService {
    /**
     * 判断当前用户是否登录
     *
     * @return
     */
    protected boolean isLogin() {
        return SecurityUtils.getSubject().isAuthenticated();
    }
}
